import { makeAutoObservable, runInAction } from "mobx"
import { http } from "../utils"

class UserInforStore {
  userInfor = {}
  constructor() {
    makeAutoObservable(this)
  }
  getUserInfor = async () => {
    //调用接口
    const res = await http.get('/user_server/api/v1/pub/user/detail')


    runInAction(() => {
      this.userInfor = res.data
    })

    // console.log(this.userInfor)
  }
}

export default UserInforStore